package com.hzsk.lisence.mapper;

import com.hzsk.lisence.entity.LisenceCorporateEntity;
import com.hzsk.lisence.entity.LisenceUserEntity;
import com.hzsk.lisence.entity.query.LisenceServiceQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CorporateMapper {

    Integer createCorporate(LisenceCorporateEntity lisenceCorporateEntity);

    Integer updateCorporateInfo(LisenceCorporateEntity lisenceCorporateEntity);

    Integer delCorporateInfo(@Param("id")Integer id);

    List<LisenceCorporateEntity> selectByEntity(LisenceCorporateEntity lisenceCorporateEntity);

    List<LisenceCorporateEntity> selectAll(LisenceServiceQuery lisenceServiceQuery);

    List<LisenceUserEntity> selectUserByCorporateId(@Param("id")Integer id);

}
